<?php

global $_W, $_GPC;

$operation = !empty($_GPC['op']) ? $_GPC['op'] : 'display';

if($operation == 'display'){
    $from_uid = intval($_GPC['from_uid']);
    $posterid = intval($_GPC['posterid']);
    
    $from_member = pdo_fetch("select * from ".tablename("mc_members")." where uid = $from_uid ");
    $qr = pdo_fetch("select * from ".tablename(MODULE_PREFIX.'qr')." where uid = ".$from_uid." and posterid = ".$posterid);
    $poster = pdo_fetch("select * from ".tablename(MODULE_PREFIX.'poster')." where id = ".$posterid);
    
    if(empty($from_member)){
        message("当前会员不存在！");   
    }
    
    if(empty($qr)){
        message("当前海报不存在！或已被删除！");
    }
}


include $this->template('reccode');